#!/bin/sh
dt=$1
rt=`date "+%Y%m%d%H%M%S"`
dt_1=`date -d "$dt -1 days" "+%Y%m%d"`
dt1=`date -d "$dt 1 days" "+%Y%m%d"`
ld=`date -d "-1 days" "+%Y%m%d"`

hive --hivevar RUNDATE=${dt}  --hivevar LASTDATE=${ld} -f src/ods_hism_movielens_links.q
